import Vue from 'vue'
import Router from 'vue-router'
import Train from '@/components/train'
import TrainDetail from '@/components/trainDetail'
import Login from '@/components/login'


Vue.use(Router)

export default new Router({
  routes: [
		{
			path: '*',
			redirect: '/login'
		},{
      path: '/train',
      name: 'train',
      component: Train
    },{
    	path: '/trainDetail',
    	name: 'trainDetail',
    	component: TrainDetail
    },{
    	path: '/login',
    	name: 'login',
    	component: Login
    }
  ]
})
